분실한 mysql root password 재설정하기

Mysql을 처음 설치할 때 database root 계정으로 사용할 password를 설정한다. 하지만 시간이 오래 지나서 그때 설정한 password를 기억할 수 없다면 다음의 방법으로 재설정할 수 있다. (Ubuntu 12.04 기준) Step 1. 실행중인 mysql service를 중지 시킨다. # service mysql stop Step 2. Password를 검사하지 않도록 mysql 환경설정 파일을 수정한다. : /etc/mysql/my.conf file에 skip-grant-tables를 추가하면 password를 검사하지 않는다. … 분실한 mysql root password 재설정하기 계속 읽기